import home from "../home.js";
import login from "../login/login.js";
import registe from "../registe/registe.js";
import userList from "../pages/userList/userList.js";
import main from "../pages/main/main.js";
import start from "../pages/start/start.jsx";
import input from "../pages/input/input.jsx";
//创建路由
const routes = [
  {
    from: "/",
    to: "/songhanUI",
  },
  {
    path: "/songhanUI",
    exact: true,
    component: home,
    children: [
      //   {
      //     from: "/songhanUI/",
      //     to: "/songhanUI/main",
      //   },
      {
        path: "/songhanUI/main",
        component: main,
        exact: true,
      },
      {
        path: "/songhanUI/userList",
        component: userList,
        exact: true,
      },
      {
        path: "/songhanUI/start",
        component: start,
        exact: true,
      },
      {
        path: "/songhanUI/input",
        component: input,
        exact: true,
      },
    ],
  },
  {
    path: "/login",
    exact: true,
    component: login,
  },
  {
    path: "/registe",
    exact: true,
    component: registe,
  },
];
export { routes };
